package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbFactorOpSymbolSetMapper;
import com.ruoyi.system.domain.TbFactorOpSymbolSet;
import com.ruoyi.system.service.ITbFactorOpSymbolSetService;

/**
 * 因子算法操作符Service业务层处理
 * 
 * @author shang
 * @date 2022-03-03
 */
@Service
public class TbFactorOpSymbolSetServiceImpl implements ITbFactorOpSymbolSetService 
{
    @Autowired
    private TbFactorOpSymbolSetMapper tbFactorOpSymbolSetMapper;

    /**
     * 查询因子算法操作符
     * 
     * @param symbolCd 因子算法操作符主键
     * @return 因子算法操作符
     */
    @Override
    public TbFactorOpSymbolSet selectTbFactorOpSymbolSetBySymbolCd(Long symbolCd)
    {
        return tbFactorOpSymbolSetMapper.selectTbFactorOpSymbolSetBySymbolCd(symbolCd);
    }

    /**
     * 查询因子算法操作符列表
     * 
     * @param tbFactorOpSymbolSet 因子算法操作符
     * @return 因子算法操作符
     */
    @Override
    public List<TbFactorOpSymbolSet> selectTbFactorOpSymbolSetList(TbFactorOpSymbolSet tbFactorOpSymbolSet)
    {
        return tbFactorOpSymbolSetMapper.selectTbFactorOpSymbolSetList(tbFactorOpSymbolSet);
    }

    /**
     * 新增因子算法操作符
     * 
     * @param tbFactorOpSymbolSet 因子算法操作符
     * @return 结果
     */
    @Override
    public int insertTbFactorOpSymbolSet(TbFactorOpSymbolSet tbFactorOpSymbolSet)
    {
        return tbFactorOpSymbolSetMapper.insertTbFactorOpSymbolSet(tbFactorOpSymbolSet);
    }

    /**
     * 修改因子算法操作符
     * 
     * @param tbFactorOpSymbolSet 因子算法操作符
     * @return 结果
     */
    @Override
    public int updateTbFactorOpSymbolSet(TbFactorOpSymbolSet tbFactorOpSymbolSet)
    {
        return tbFactorOpSymbolSetMapper.updateTbFactorOpSymbolSet(tbFactorOpSymbolSet);
    }

    /**
     * 批量删除因子算法操作符
     * 
     * @param symbolCds 需要删除的因子算法操作符主键
     * @return 结果
     */
    @Override
    public int deleteTbFactorOpSymbolSetBySymbolCds(Long[] symbolCds)
    {
        return tbFactorOpSymbolSetMapper.deleteTbFactorOpSymbolSetBySymbolCds(symbolCds);
    }

    /**
     * 删除因子算法操作符信息
     * 
     * @param symbolCd 因子算法操作符主键
     * @return 结果
     */
    @Override
    public int deleteTbFactorOpSymbolSetBySymbolCd(Long symbolCd)
    {
        return tbFactorOpSymbolSetMapper.deleteTbFactorOpSymbolSetBySymbolCd(symbolCd);
    }
}
